<%@page import="siniflar.Ortak"%>
<%@ page import="java.util.ArrayList" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="ogrenci" class="siniflar.Ogrenci" scope="session" />
<jsp:useBean id="ogrenciCalismaNotlari" type="ArrayList<siniflar.OdevNot>" scope="session" />

<jsp:include page="../ek_bas.jsp" />
<title>Çalışma Notları</title>
<jsp:include page="ek_menu.jsp" />
<h1 class="icbaslik cnotlariicon">Çalışma Notları</h1>

<table>
    <tr class="tablobaslik"><td class="altkenarlikli">Ders Kodu</td><td class="altkenarlikli">Ders Adı</td><td class="altkenarlikli">Ders Kredi</td><td class="altkenarlikli">Not Adı</td><td class="altkenarlikli">Gönderen</td></tr>
           
    <%
        for(int i=0; i<ogrenciCalismaNotlari.size(); i++){
            out.println("<tr class=\"r"+(i%2)+"\">");
            
            out.println("<td>");
            out.print(ogrenciCalismaNotlari.get(i).getDers().getDersKodu()); 
            out.println("</td>");
            out.println("<td>");
            out.print(ogrenciCalismaNotlari.get(i).getDers().getDersAdi()); 
            out.println("</td>");
            out.println("<td>");
            out.print(ogrenciCalismaNotlari.get(i).getDers().getDersKredi());
            out.println("</td>");
            out.println("<td>");
            out.print("<a href=\"NotAyrinti?notno="+ogrenciCalismaNotlari.get(i).getId()+"\">"+
                    ogrenciCalismaNotlari.get(i).getBaslik()+"</a>");
            out.println("</td>");
            out.println("<td>");
            out.print(ogrenciCalismaNotlari.get(i).getGonderen().getAdSoyad());
            out.println("</td>");

            out.println("<tr>");
        }
        
    %>
</table>
<jsp:include page="../ek_son.jsp" />
